#ifndef _OPCODES_H_
#define _OPCODES_H_
#include "SocketServer.h"
#include <string>
enum Opcodes
{
	OPCODE_NONE = 0,
	CMSG_PLAYER_LOGIN_CHECK_ACCOUNT = 1,
	SMSG_PLAYER_LOGIN_CHECK_ACCOUNT = 2,
	CMSG_SEND_BUILD_PLAYER_REQUIRE = 3,
	SMSG_SEND_BUILD_PLAYER_REQUIRE = 4,
	CMSG_GET_CHARACTER_INFO				= 5,
	SMSG_GET_CHARACTER_INFO				= 6,
	CMSG_PLAYER_GET_ACHMENT_DATA	  = 7,
	SMSG_PLAYER_GET_ACHMENT_DATA	  = 8,
	CMSG_NEXT_PACKET_REQUIRE		  = 9999,
	CMSG_HEART_BEAT_PACKET			  = 10000,
};
#define LoginSuccess	1
#define LoginFailed		2
#define sOpcode			OpcodeHandler::GetInstance()
class OpcodeHandler
{
public:
	OpcodeHandler();
	~OpcodeHandler();
	static OpcodeHandler* GetInstance();
	WorldPacket SplitPacket(WorldPacket& _WorldPacket);
	void MessageComming(WorldPacket& _WorldPacket, HSocket _HSocket);
	void HandlePlayerLoginOpcode(WorldPacket& _WorldPacket, HSocket _HSocket);
	void HandlePlayerBuildOpcode(WorldPacket& _WorldPacket, HSocket _HSocket);
	void HandlePlayerGetCharacterDetail(WorldPacket& _WorldPacket, HSocket _Hsocket);
private:
};


#endif